package com.blog.frontend;

import org.apache.wicket.protocol.http.HttpSessionStore;
import org.apache.wicket.protocol.http.WebApplication;
import org.apache.wicket.session.ISessionStore;

import com.blog.frontend.pages.ListArticlesPage;

public class BlogWebApplication extends WebApplication {
	
	/**
	 * {@inheritDoc}
	 */
	@Override
	public Class<?> getHomePage() {
		return ListArticlesPage.class;
	}
	
	/**
	 * {@inheritDoc}
	 */
	@Override
	protected ISessionStore newSessionStore() {
		return new HttpSessionStore(this);
	}
	
	@Override
	protected void init() {
		getResourceSettings().setResourcePollFrequency(null);
	}
}
